Skip to content

feat(deliveries): 在 Web 下载确认的交付文件 / download confirmed files from shared desktop delivery cards - #9

Draft
Facetomyself wants to merge 4 commits into
feat/web-workbench-sessionsfrom
feat/web-workbench-deliveries
Draft

Facetomyself wants to merge 4 commits into
feat/web-workbench-sessionsfrom
feat/web-workbench-deliveries

Conversation

@Facetomyself

@Facetomyself Facetomyself commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #8; refs sqfcyily#67. This slice separates incoming chat attachments from outgoing deliverables.

  • Explicitly export a completed, confirmed assistant reply as Markdown or plain text. The server locates the real turn; the browser supplies neither content nor a host path. Repeating the same export returns the original record, without rewriting the transcript or invoking the model again.
  • For read-only desktop history, accept only a successful, uniquely matched native present_files call/result with its recorded sidecar. Show only items inside an operator-granted project. Download by authenticated session, group, original index and current version; file contents and absolute paths are not sent on the chat stream.
  • Reuse the original desktop card and row view, including folding, statuses and file actions. The browser can download, use validated raster previews, and locate real files in the existing authorized workspace panel. PDFs and a bounded subset of ordinary DOCX/XLSX/PPTX packages are download-only. No general file server, Office execution, image conversion or model tools are added.
  • The real Chrome E2E clicks the card, checks the saved filename and exact UTF-8 bytes, refreshes, and locates a pre-existing desktop delivery. A synthetic one-turn upstream fixture distinguishes a real send from a download. Local type/build, request/ownership, disk persistence, package validation and fixture preflights were checked. Modern browser and native deployment receipts are tracked separately.

Checked receipts

  • Node 22 / real Chrome, exact revision: 85 workbench checks and 272 host tests passed. The new delivery workflow clicked the real browser download, checked the saved filename and bytes, reloaded/repeated the download and located a native desktop delivery in the authorized project. Exactly one model request was made, for the original answer only. All six ordinary-workbench Chrome flows passed; the separate optional server-side browser handoff from feat(browser): 隔离人工网页接管与工作台身份 / isolate manual browser handoff from workbench credentials #7 remains red, so this is not an all-green stack claim.
  • On a real linux/amd64 Docker deployment the 233,416,940-byte base image passed conditional authorization, real native desktop record/original item index filtering, exact text (BOM/CRLF), static image preview, and attachment-only DOCX/XLSX/PPTX bytes and MIME. Creating an unrelated sibling did not alter the target file revision. Explicit reply export returned 201 then 200 and retained the same bytes after recreation. Workspace file revisions are process-scoped and must be refreshed after restart; the fresh retest checked both old-version rejection and the unchanged content. Temporary QA resources were removed. No permanent endpoint, host policy changes or live vendor account were used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant